class Batman < ActionMailer::Base
	
	def message(message)
		@recipients = []
    case message['recipient']
    when 'contact'
      @recipients << "info@eurojob-consulting.com"
			@recipients << "franck.dagostini@gmail.com"
    when 'webmaster'
      @recipients << "franck.dagostini@gmail.com"
    else
      @recipients << message['recipient']
			@recipients << "franck.dagostini@gmail.com"
    end

		@subject = message['subject']
		@from = "site@eurojob-consulting.com"
		
		@body["email"] = message['email']
		@body["subject"] = message['subject']
		@body["body"] = message['body']		
  end
	
end
